package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.common.constant.WorkerOrderStatus;
import com.cloudfun.campusshare.entity.WorkerOrderEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author : zhangyongjie
 * @version : 1.0
 * @createTime : 2020/5/11 14:32
 * @description :
 */
public interface WorkerOrderEntityRepo extends JpaRepository<WorkerOrderEntity, String>, JpaSpecificationExecutor<WorkerOrderEntity> {
    Long countAllByTransactorIdAndWorkerOrderStatus(String transactorId, WorkerOrderStatus status);
}
